<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<% String contextPath = request.getContextPath(); %>
<%@page import="common.*" %>
<%@ page import="java.util.*" %>
<%  List<Payment> list = Payment.find_not_yet();%>
<% 
	String msg = (String)request.getAttribute("msg");
	if(msg == null || msg.length() == 0) msg = "";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<link href="<%= contextPath %>/css/order.css" rel="stylesheet" type="text/css">
	<title>決済代行管理</title>
</head>
	<body>
		<div id="cashManage">
		<div id="cashmsg"><%= msg %></div>
			<div>
				<table border="1">
					<tr>
						<th>納品番号</th>
						<th>顧客名</th>
						<th>カード番号</th>
						<th>請求金額</th>
						<th>納品書発行日</th>
					</tr>
					<% for(int i=0; i < list.size(); i++){
						Payment pm = list.get(i);
					 %>
					<tr>
						<td><%=pm.getNum()%></td>
						<td><%=pm.getName()%></td>
						<td><%=pm.getCard()%></td>
						<td><%=pm.getPrice_total()%></td>
						<td><%=pm.getReceipt_date()%></td>
						<%} %>
					</tr>
				</table>
			</div>
			<div>
				<form action="<%= contextPath %>/payment/CashServlet">
					<input type="submit" value="請  求"  id="log" />
				</form>
			</div>
			<div>
				<form action="<%= contextPath %>/operator/menu.jsp">
					<input type="submit" value="担当者メニューへ戻る"  id="menu"/>
				</form>
			</div>
		</div>
	</body>
</html>